package cn.edu.scau.cmi.chengruyuan.adapter.classAdapter;

public class AdapterPattern {

	AudioPlayer audioPlayer = new AudioPlayer();
	
	public  String getMediaPlayingInfo(int type) {
		switch (type) {
		case 1: // 驾驶员身体受伤
			return audioPlayer.play("mp3", "beyond the horizon.mp3");
		case 2: // 汽车损坏
			return audioPlayer.play("mp4", "alone.mp4");
		case 3: // 人员伤亡
			return audioPlayer.play("vlc", "far far away.vlc");
		case 4: // 多种事故
			return audioPlayer.play("avi", "mind me.avi");
		default:
			return null;
		}
	}

}
